package ru.dc.gui.ncurses;

import charvax.swing.AbstractListModel;
import ru.dc.gui.UsersStore;

/**
 * <pre>
 * User: Penkov Vladimir
 * Date: 11.10.2010
 * Time: 16:56:08
 * </pre>
 */
public class UsersListModel extends AbstractListModel {

    private UsersStore model;

    public UsersListModel(UsersStore model) {
        this.model = model;
    }

    public Object getElementAt(int i) {
        return model.getElementAt(i);
    }

    public int getSize() {
        return model.getSize();
    }

/*
    public void addUser(String nick) {
        model.addUser(nick);
    }

    public void addUsers(Collection<String> nick) {
        model.addUsers(nick);
    }

*/
    public void removeUser(String nick) {
        model.removeUser(nick);
    }
}

